﻿// -------------------------------------------------------------------------
//    @FileName         :    NFMMOGamePlayerPlugin.cpp
//    @Author           :    gaoyi
//    @Date             :    2025-02-27
//    @Email			:    445267987@qq.com
//    @Module           :    NFMMOGamePlayerPlugin
//
// -------------------------------------------------------------------------

#include "NFMMOGamePlayerPlugin.h"
#include "NFComm/NFPluginModule/NFIPluginManager.h"
#include "NFGamePlayerModule.h"

#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFMMOGamePlayerPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFMMOGamePlayerPlugin)
};

#endif


//////////////////////////////////////////////////////////////////////////

int NFMMOGamePlayerPlugin::GetPluginVersion()
{
    return 0;
}

std::string NFMMOGamePlayerPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFMMOGamePlayerPlugin);
}

void NFMMOGamePlayerPlugin::Install()
{
    REGISTER_MODULE(m_pObjPluginManager, NFGamePlayerModule, NFGamePlayerModule);
}

void NFMMOGamePlayerPlugin::Uninstall()
{
    UNREGISTER_MODULE(m_pObjPluginManager, NFGamePlayerModule, NFGamePlayerModule);
}

bool NFMMOGamePlayerPlugin::InitShmObjectRegister()
{
    return true;
}
